import request from '@/utils/request'

export const addOneZhSpeech = data => request({
  url: '/addOneZhSpeech',
  method: 'put',
  data: data || {}
})

export const deleteOneZhSpeech = id => request({
  url: '/deleteOneZhSpeech/' + id,
  method: 'delete'
})

export const updateOneZhSpeech = data => request({
  url: '/updateOneZhSpeech',
  method: 'patch',
  data: data || {}
})

export const getOneZhSpeech = id => request({
  url: '/getOneGoodsZhSpeech/' + id,
  method: 'get'
})

export const getZhSpeechList = data => request({
  url: '/getZhSpeechList',
  method: 'post',
  data: data || {}
})

export const getAllZhSpeechList = () => request({
  url: '/getAllZhSpeechList',
  method: 'get'
})
